Integrand size = 17, antiderivative size = 44 \[ \int \frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=-\frac {\cot ^2\left (a+b \log \left (c x^n\right )\right )}{2 b n}-\frac {\log \left (\sin \left (a+b \log \left (c x^n\right )\right )\right )}{b n} \]
Time = 0.18 (sec) , antiderivative size = 52, normalized size of antiderivative = 1.18 \[ \int \frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=-\frac {\cot ^2\left (a+b \log \left (c x^n\right )\right )+2 \log \left (\cos \left (a+b \log \left (c x^n\right )\right )\right )+2 \log \left (\tan \left (a+b \log \left (c x^n\right )\right )\right )}{2 b n} \]
-1/2*(Cot[a + b*Log[c*x^n]]^2 + 2*Log[Cos[a + b*Log[c*x^n]]] + 2*Log[Tan[a + b*Log[c*x^n]]])/(b*n)
Time = 0.28 (sec) , antiderivative size = 44, normalized size of antiderivative = 1.00, number of steps used = 9, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.471, Rules used = {3039, 3042, 25, 3954, 25, 3042, 25, 3956}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx\) |
\(\Big \downarrow \) 3039 |
\(\displaystyle \frac {\int \cot ^3\left (a+b \log \left (c x^n\right )\right )d\log \left (c x^n\right )}{n}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {\int -\tan \left (a+b \log \left (c x^n\right )+\frac {\pi }{2}\right )^3d\log \left (c x^n\right )}{n}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle -\frac {\int \tan \left (\frac {1}{2} (2 a+\pi )+b \log \left (c x^n\right )\right )^3d\log \left (c x^n\right )}{n}\) |
\(\Big \downarrow \) 3954 |
\(\displaystyle \frac {\int -\cot \left (a+b \log \left (c x^n\right )\right )d\log \left (c x^n\right )-\frac {\cot ^2\left (a+b \log \left (c x^n\right )\right )}{2 b}}{n}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {-\int \cot \left (a+b \log \left (c x^n\right )\right )d\log \left (c x^n\right )-\frac {\cot ^2\left (a+b \log \left (c x^n\right )\right )}{2 b}}{n}\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \frac {-\int -\tan \left (a+b \log \left (c x^n\right )+\frac {\pi }{2}\right )d\log \left (c x^n\right )-\frac {\cot ^2\left (a+b \log \left (c x^n\right )\right )}{2 b}}{n}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\int \tan \left (\frac {1}{2} (2 a+\pi )+b \log \left (c x^n\right )\right )d\log \left (c x^n\right )-\frac {\cot ^2\left (a+b \log \left (c x^n\right )\right )}{2 b}}{n}\) |
\(\Big \downarrow \) 3956 |
\(\displaystyle \frac {-\frac {\log \left (-\sin \left (a+b \log \left (c x^n\right )\right )\right )}{b}-\frac {\cot ^2\left (a+b \log \left (c x^n\right )\right )}{2 b}}{n}\) |
3.3.23.3.1 Defintions of rubi rules used
Int[u_, x_Symbol] :> With[{lst = FunctionOfLog[Cancel[x*u], x]}, Simp[1/lst [[3]] Subst[Int[lst[[1]], x], x, Log[lst[[2]]]], x] /; !FalseQ[lst]] /; NonsumQ[u]
Int[((b_.)*tan[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[b*((b*Tan[c + d *x])^(n - 1)/(d*(n - 1))), x] - Simp[b^2 Int[(b*Tan[c + d*x])^(n - 2), x] , x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1]
Int[tan[(c_.) + (d_.)*(x_)], x_Symbol] :> Simp[-Log[RemoveContent[Cos[c + d *x], x]]/d, x] /; FreeQ[{c, d}, x]
Time = 0.50 (sec) , antiderivative size = 42, normalized size of antiderivative = 0.95
method | result | size |
derivativedivides | \(\frac {-\frac {{\cot \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}}{2}+\frac {\ln \left ({\cot \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}+1\right )}{2}}{n b}\) | \(42\) |
default | \(\frac {-\frac {{\cot \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}}{2}+\frac {\ln \left ({\cot \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}+1\right )}{2}}{n b}\) | \(42\) |
parallelrisch | \(\frac {-2 \ln \left (\tan \left (a +b \ln \left (c \,x^{n}\right )\right )\right )+\ln \left ({\sec \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}\right )-{\cot \left (a +b \ln \left (c \,x^{n}\right )\right )}^{2}}{2 b n}\) | \(53\) |
risch | \(-i \ln \left (x \right )+\frac {2 i a}{n b}+\frac {2 i \ln \left (c \right )}{n}+\frac {2 i \ln \left (x^{n}\right )}{n}+\frac {\pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}}{n}-\frac {\pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )}{n}-\frac {\pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{n}+\frac {\pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )}{n}+\frac {2 \left (x^{n}\right )^{2 i b} c^{2 i b} {\mathrm e}^{-b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{-b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{2 i a}}{b n {\left (\left (x^{n}\right )^{2 i b} c^{2 i b} {\mathrm e}^{-b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{-b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{2 i a}-1\right )}^{2}}-\frac {\ln \left (\left (x^{n}\right )^{2 i b} c^{2 i b} {\mathrm e}^{-b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}} {\mathrm e}^{b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right ) \operatorname {csgn}\left (i c \right )} {\mathrm e}^{b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}} {\mathrm e}^{-b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{2} \operatorname {csgn}\left (i c \right )} {\mathrm e}^{2 i a}-1\right )}{b n}\) | \(453\) |
Time = 0.26 (sec) , antiderivative size = 70, normalized size of antiderivative = 1.59 \[ \int \frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=-\frac {{\left (\cos \left (2 \, b n \log \left (x\right ) + 2 \, b \log \left (c\right ) + 2 \, a\right ) - 1\right )} \log \left (-\frac {1}{2} \, \cos \left (2 \, b n \log \left (x\right ) + 2 \, b \log \left (c\right ) + 2 \, a\right ) + \frac {1}{2}\right ) - 2}{2 \, {\left (b n \cos \left (2 \, b n \log \left (x\right ) + 2 \, b \log \left (c\right ) + 2 \, a\right ) - b n\right )}} \]
-1/2*((cos(2*b*n*log(x) + 2*b*log(c) + 2*a) - 1)*log(-1/2*cos(2*b*n*log(x) + 2*b*log(c) + 2*a) + 1/2) - 2)/(b*n*cos(2*b*n*log(x) + 2*b*log(c) + 2*a) - b*n)
Leaf count of result is larger than twice the leaf count of optimal. 97 vs. \(2 (36) = 72\).
Time = 4.27 (sec) , antiderivative size = 97, normalized size of antiderivative = 2.20 \[ \int \frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\begin {cases} \tilde {\infty } \log {\left (x \right )} & \text {for}\: a = 0 \wedge b = 0 \wedge n = 0 \\\log {\left (x \right )} \cot ^{3}{\left (a \right )} & \text {for}\: b = 0 \\\log {\left (x \right )} \cot ^{3}{\left (a + b \log {\left (c \right )} \right )} & \text {for}\: n = 0 \\\tilde {\infty } \log {\left (x \right )} & \text {for}\: a = - b \log {\left (c x^{n} \right )} \\\frac {\log {\left (\tan ^{2}{\left (a + b \log {\left (c x^{n} \right )} \right )} + 1 \right )}}{2 b n} - \frac {\log {\left (\tan {\left (a + b \log {\left (c x^{n} \right )} \right )} \right )}}{b n} - \frac {1}{2 b n \tan ^{2}{\left (a + b \log {\left (c x^{n} \right )} \right )}} & \text {otherwise} \end {cases} \]
Piecewise((zoo*log(x), Eq(a, 0) & Eq(b, 0) & Eq(n, 0)), (log(x)*cot(a)**3, Eq(b, 0)), (log(x)*cot(a + b*log(c))**3, Eq(n, 0)), (zoo*log(x), Eq(a, -b *log(c*x**n))), (log(tan(a + b*log(c*x**n))**2 + 1)/(2*b*n) - log(tan(a + b*log(c*x**n)))/(b*n) - 1/(2*b*n*tan(a + b*log(c*x**n))**2), True))
Leaf count of result is larger than twice the leaf count of optimal. 1713 vs. \(2 (42) = 84\).
Time = 0.26 (sec) , antiderivative size = 1713, normalized size of antiderivative = 38.93 \[ \int \frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\text {Too large to display} \]
-1/2*(8*(cos(2*b*log(c))^2 + sin(2*b*log(c))^2)*cos(2*b*log(x^n) + 2*a)^2 + 8*(cos(2*b*log(c))^2 + sin(2*b*log(c))^2)*sin(2*b*log(x^n) + 2*a)^2 - 4* ((cos(4*b*log(c))*cos(2*b*log(c)) + sin(4*b*log(c))*sin(2*b*log(c)))*cos(2 *b*log(x^n) + 2*a) + (cos(2*b*log(c))*sin(4*b*log(c)) - cos(4*b*log(c))*si n(2*b*log(c)))*sin(2*b*log(x^n) + 2*a))*cos(4*b*log(x^n) + 4*a) - 4*cos(2* b*log(c))*cos(2*b*log(x^n) + 2*a) + ((cos(4*b*log(c))^2 + sin(4*b*log(c))^ 2)*cos(4*b*log(x^n) + 4*a)^2 + 4*(cos(2*b*log(c))^2 + sin(2*b*log(c))^2)*c os(2*b*log(x^n) + 2*a)^2 + (cos(4*b*log(c))^2 + sin(4*b*log(c))^2)*sin(4*b *log(x^n) + 4*a)^2 + 4*(cos(2*b*log(c))^2 + sin(2*b*log(c))^2)*sin(2*b*log (x^n) + 2*a)^2 - 2*(2*(cos(4*b*log(c))*cos(2*b*log(c)) + sin(4*b*log(c))*s in(2*b*log(c)))*cos(2*b*log(x^n) + 2*a) + 2*(cos(2*b*log(c))*sin(4*b*log(c )) - cos(4*b*log(c))*sin(2*b*log(c)))*sin(2*b*log(x^n) + 2*a) - cos(4*b*lo g(c)))*cos(4*b*log(x^n) + 4*a) - 4*cos(2*b*log(c))*cos(2*b*log(x^n) + 2*a) + 2*(2*(cos(2*b*log(c))*sin(4*b*log(c)) - cos(4*b*log(c))*sin(2*b*log(c)) )*cos(2*b*log(x^n) + 2*a) - 2*(cos(4*b*log(c))*cos(2*b*log(c)) + sin(4*b*l og(c))*sin(2*b*log(c)))*sin(2*b*log(x^n) + 2*a) - sin(4*b*log(c)))*sin(4*b *log(x^n) + 4*a) + 4*sin(2*b*log(c))*sin(2*b*log(x^n) + 2*a) + 1)*log((cos (a)^2 + sin(a)^2)*cos(b*log(c))^2 + (cos(a)^2 + sin(a)^2)*sin(b*log(c))^2 + 2*(cos(b*log(c))*cos(a) - sin(b*log(c))*sin(a))*cos(b*log(x^n)) + cos(b* log(x^n))^2 - 2*(cos(a)*sin(b*log(c)) + cos(b*log(c))*sin(a))*sin(b*log...
Timed out. \[ \int \frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\text {Timed out} \]
Time = 29.41 (sec) , antiderivative size = 106, normalized size of antiderivative = 2.41 \[ \int \frac {\cot ^3\left (a+b \log \left (c x^n\right )\right )}{x} \, dx=\ln \left (x\right )\,1{}\mathrm {i}+\frac {2}{b\,n\,\left (1+{\mathrm {e}}^{a\,4{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,4{}\mathrm {i}}-2\,{\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}\right )}+\frac {2}{b\,n\,\left ({\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}-1\right )}-\frac {\ln \left ({\mathrm {e}}^{a\,2{}\mathrm {i}}\,{\left (c\,x^n\right )}^{b\,2{}\mathrm {i}}-1\right )}{b\,n} \]